function updateamcolumn(timeData, valueData, ylabel, xNum, mark,place) {
	if(timeData=='')
    {
     timeData="<value xid='0'>0</value>";
     valueData="<value xid='0'>0</value>";
    }
	var balloon_text = "";
	var legend_text = "";
	if(mark==('%')){
		balloon_text = "<balloon_text><![CDATA[{series}<br/> {value}%25]]></balloon_text>";
		legend_text = "<values><category><frequency>"+xNum+"</frequency></category><value><unit>%25</unit></value></values><legend><values><text><![CDATA[ {value}%25]]></text></values></legend>";
	}else if(mark==('￥')){
		balloon_text = "<balloon_text><![CDATA[{series}<br/>  ￥{value}]]></balloon_text>";
		legend_text = "<legend><values><text><![CDATA[ ￥{value}]]></text></values></legend>";
	}else if(mark==('avg')){
		balloon_text = "<balloon_text><![CDATA[{series}<br/>  {value}]]></balloon_text>";
		legend_text = "<legend><values><text><![CDATA[ {value}]]></text></values></legend>";
	}else{
		balloon_text = "<balloon_text><![CDATA[{series}<br/>  {value}]]></balloon_text>";
		legend_text = "<legend><values><text><![CDATA[ {value}]]></text></values></legend>";
	}
	var so = new SWFObject("/amcolumn/amcolumn.swf", "amline",
			860, 300, "8", "#FFFFFF");
	so.addVariable("path", "/amcolumn/");
	so.addParam("wmode", "transparent");
	so.addVariable("settings_file",
			encodeURIComponent("../amcolumn/amcolumn_settings.xml"));
	var chartCss = "";
	var fdata = "<?xml version='1.0' encoding='UTF-8'?><chart><series>"
			+ timeData + "</series><graphs><graph gid='1' title='" + ylabel
			+ "'" + chartCss + ">" + balloon_text + valueData + "</graph></graphs></chart>";
	so
			.addVariable(
					"additional_chart_settings",
					"<settings><graphs><graph gid='1'>"+balloon_text+"</graph></graphs>"+legend_text+"<plot_area><margins><top>40</top><right>32</right></margins></plot_area></settings>");
	so.addVariable("chart_data", fdata);
	so.write(place);
}
